//
// Created by jaesonzhang on 2024/9/13.
//

#ifndef SKIACANVASJSBINDING_CANVAS_H
#define SKIACANVASJSBINDING_CANVAS_H

#include "core/SkBitmap.h"
#include "../engine/JSApp.h"
#include "Context.h"

namespace skiacanvas {
class Canvas {
 public:
  Canvas(JSApp *app,
         skiacanvas::Context *ctx,
         int cId,
         int width,
         int height);
  void commit();
  ~Canvas();

 public:
  int width;
  int height;

 private:
  JSApp *app;
  skiacanvas::Context *ctx;
  int canvasId;

};
} // end of namespace skiacanvas


#endif //SKIACANVASJSBINDING_CANVAS_H
